package cn.com.chengq.partters.builder.b02;

/**
 * 需要构建的复杂对象
 */
public class Parlour {
    private String wall;
    private String tv;
    private String sofa;

    public void setWall(String wall) {
        this.wall = wall;
    }

    public void setTv(String tv) {
        this.tv = tv;
    }

    public void setSofa(String sofa) {
        this.sofa = sofa;
    }

    @Override
    public String toString() {
        return "Parlour{" +
                "wall='" + wall + '\'' +
                ", tv='" + tv + '\'' +
                ", sofa='" + sofa + '\'' +
                '}';
    }

    public void show() {
        System.out.println(this.toString());
    }
}
